package org.example.springcloud.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.springcloud.entities.Payment;

/**
 * Created with IntelliJ IDEA.
 *
 * @author Jandmla
 * Date: 2022/7/22
 * Time: 13:50
 * Description: payment 数据持久层 DAO
 */
@Mapper
public interface PaymentDao {

    /**
     * 实体类插入
     * @param payment 插入对象
     * @return 受影响行数
     */
    public int create(Payment payment);

    /**
     * 通过ID查询
     * @param id ID
     * @return 查询结果
     */
    public Payment getPaymentById(@Param("id") Long id);
}